<span id="order">排序：<span class="relevance">
<?php
if(strcmp($_GET['order'],'price ASC'))
{
	$url=explode('&order',$_SERVER["REQUEST_URI"]);
	echo CHtml::link('价格',$url[0].'&order=price ASC'); 
}
else
{
	$url=explode('&order',$_SERVER["REQUEST_URI"]);
	echo CHtml::link('价格',$url[0].'&order=price DESC');
}
?>
</span> | <span class="date">
<?php 
if(strcmp($_GET['order'],'company ASC'))
{ 
	$url=explode('&order',$_SERVER["REQUEST_URI"]);
	echo CHtml::link('公司',$url[0].'&order=company ASC'); 
}
else
{
	$url=explode('&order',$_SERVER["REQUEST_URI"]);
	echo CHtml::link('公司',$url[0].'&order=company DESC');
}
?></span></span><br />
<?php 
//CDebug::print_m($models);
$i=0;
if(count($models)==0)
{
	echo '无查询结果！';
}
foreach($models as $model):?>
	<div class="job_inf">
	<h4><?php echo CHtml::link('<span>'.$model['name'].'</span>',$_SERVER["REQUEST_URI"].'&Id='.$i); ?></h4>
	&nbsp;&nbsp;&nbsp;&nbsp;<strong>价格:</strong><?php if($model['price']!='0'){echo $model['price'];}else{echo "面议";} ?>&nbsp;&nbsp;&nbsp;
	<strong>公司：</strong><?php echo $model['company']; ?>&nbsp;&nbsp;&nbsp;&nbsp;
	<strong>公司地点:</strong><?php if($model['city']==''){echo '不详';}else{echo $model['city'];} ?>
	<p> &nbsp; &nbsp; &nbsp;<?php echo $model['info']; ?></p>
	</div>
<?php 
$i=$i+1;
endforeach; ?>
<div class="pages">
<?php 
$this->widget('CLinkPager',array('pages'=>$pages,
	//	'header' => '翻页',
        'firstPageLabel' => '首页',
        'lastPageLabel' => '末页',
        'nextPageLabel' => '下一页',
        'prevPageLabel' => '上一页',
		));
	?>
</div>